/*
package com.cloud.tsp.controller;

import com.cloud.core.util.R;
import com.cloud.api.domain.tsp.QueryTenant;
import com.cloud.api.domain.tsp.VehicleTenant;
import com.cloud.api.constants.StrVo;
import com.cloud.log.annotation.Log;
import com.cloud.log.enums.BusinessType;
import com.cloud.log.enums.OperatorType;
import com.cloud.mybatis.domain.TableDataInfo;
import com.cloud.tsp.service.IVehicleTenantService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import java.io.IOException;
import java.util.List;

*/
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author haohaibo
 * @since 2023-11-27
 *//*

@RestController
@RequestMapping("/vehicle-tenant")
public class VehicleTenantController {

    @Resource
    private IVehicleTenantService vehicleTenantService;

    @Tag(name = "v1.0")
    @Operation(summary = "租赁管理（管理）")
    @PostMapping("/getTenantList")
    @Log(title = "租赁管理-租赁管理", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public TableDataInfo<VehicleTenant> selectTenantList(@RequestBody @Valid QueryTenant para){
       return vehicleTenantService.selectTenantList(para);
    }

    @Tag(name = "v1.0")
    @Operation(summary = "租赁车辆数（管理）")
    @PostMapping("/getTenantCount")
    @Log(title = "租赁管理-租赁车辆数", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public R<Long> selectTenantCount(){
        return R.ok(vehicleTenantService.selectTenantCount());
    }

    @Tag(name = "v1.0")
    @Operation(summary = "每月租赁车辆数（管理）")
    @PostMapping("/getVehicleCountMonth")
    @Log(title = "租赁管理-每月租赁车辆数", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public R<Integer> selectVehicleCountMonth(){
        return R.ok(vehicleTenantService.selectVehicleCountMonth());
    }

    @Tag(name = "v1.0")
    @Operation(summary = "新增或修改租赁信息（管理）")
    @PostMapping("/insertOrUpdate")
    @Log(title = "租赁管理-新增或修改租赁信息", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public R insertOrUpdate(@RequestBody @Valid VehicleTenant para){
        vehicleTenantService.insertOrUpdate(para);
        return R.ok();
    }

    @Tag(name = "v1.0")
    @Operation(summary = "删除租赁信息（管理）")
    @PostMapping("/deleteById")
    @Log(title = "租赁管理-删除租赁信息", businessType = BusinessType.DELETE, operatorType = OperatorType.MANAGE)
    public R deleteById(@RequestBody @Valid StrVo para){
        vehicleTenantService.removeById(para.getId());
        return R.ok();
    }

    @Tag(name = "v1.0")
    @Operation(summary = "导出租赁信息表")
    @PostMapping("/exportTenantList")
    @Log(title = "租赁管理-导出租赁信息表", businessType = BusinessType.EXPORT, operatorType = OperatorType.MANAGE)
    public void exportTenantList(QueryTenant para, HttpServletResponse response) throws IOException{
        vehicleTenantService.exportTenantList(para,response);
    }

}*/
